package net.sky.oa.test.dao.talkpark;

import java.util.Date;

import javax.annotation.Resource;

import org.junit.Test;
import org.springframework.test.annotation.Rollback;

import net.sky.oa.dao.talkpark.TalAlbumDao;
import net.sky.oa.model.SysEmployee;
import net.sky.oa.model.TalAlbum;
import net.sky.oa.test.BaseTestCase;

public class TalAlbumDaoTestCase extends BaseTestCase {

	@Resource
	private TalAlbumDao talalbumdao;
	
	@Test
	@Rollback(false)
	public void save(){
	   SysEmployee user=new SysEmployee();
	   user.setId(1L);
	   TalAlbum talalbum=new TalAlbum();
	   talalbum.setCreatetime(new Date());
	   talalbum.setIspublic(1);
	   talalbum.setLasttime(new Date());
	   talalbum.setName("我的相册");
	   talalbum.setPicurl("/album/test.jpg");
	   talalbum.setStatus(1);
	   talalbum.setType(1);
	   talalbum.setUser(user);
	   this.talalbumdao.save(talalbum);
	}
	
}
